public class test {
    public static void main(String[] args) {
        /*int a=0;
        int b=0;
        b=a++;
        System.out.println(a);
       System.out.println(b);
       */
        int i = -1;
        System.out.println("初始数据：" + i);
        System.out.println("初始数据对应的二进制字符串：" + Integer.toBinaryString(i));
        i <<= 10;
        System.out.println("左移 10 位后的数据 " + i);
        System.out.println("左移 10 位后的数据对应的二进制字符 " + Integer.toBinaryString(i));
        int j=1;
        j>>=10;
        System.out.println(j);
        System.out.println(Integer.toBinaryString(j));
        System.out.println(j==1);

        int p= -1;
        System.out.println("初始数据：" + p);
        System.out.println("初始数据对应的二进制字符串：" + Integer.toBinaryString(p));
        p <<= 42;
        System.out.println("左移 10 位后的数据 " + p);
        System.out.println("左移 10 位后的数据对应的二进制字符 " + Integer.toBinaryString(p));

    }
}
